const newUserActiveService = require('../service/newUserActive');
router.post('/newSharText', async (req, res) => {
    const {
        unionId,
        openId
    } = req.body;
    //判断是否关注公众号,添加分享记录
    const dateStr = moment().format('YYYYMMDDHHmmss');

    const {
        addSharTextRecordResult
    } = await newUserActiveService.addNewUserSharTextRecord(unionId, openId, dateStr);
    res.json({
        respCode: "0000",
        respMsg: "操作成功!",
        respData: addSharTextRecordResult,
    })
});
module.exports = router;